package org.example.score.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName pd_kczl_cbjczl
 */
@TableName(value ="pd_kczl_cbjczl")
@Data
public class KczlCbjczl implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 年份
     */
    private Integer year;

    /**
     * 学校代码
     */
    private String xxdm;

    /**
     * 学校名称
     */
    private String xxmc;

    /**
     * 专业代码
     */
    private String zydm;

    /**
     * 专业名称
     */
    private String zymc;

    /**
     * 校内专业代码
     */
    private String xnzydm;

    /**
     * 校内专业名称
     */
    private String xnzymc;

    /**
     * 学院代码
     */
    private String xydm;

    /**
     * 学院名称
     */
    private String xymc;

    /**
     * 教材总数
     */
    private Integer jc;

    /**
     * 教材国家级规划
     */
    private BigDecimal jcgjjgh;

    /**
     * 教材省部级规划
     */
    private BigDecimal jcsbjgh;

    /**
     * 教材国家级精品
     */
    private BigDecimal jcgjjjp;

    /**
     * 教材省部级精品
     */
    private BigDecimal jcsbjjp;

    private Double ztzydf;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        KczlCbjczl other = (KczlCbjczl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
            && (this.getXxdm() == null ? other.getXxdm() == null : this.getXxdm().equals(other.getXxdm()))
            && (this.getXxmc() == null ? other.getXxmc() == null : this.getXxmc().equals(other.getXxmc()))
            && (this.getZydm() == null ? other.getZydm() == null : this.getZydm().equals(other.getZydm()))
            && (this.getZymc() == null ? other.getZymc() == null : this.getZymc().equals(other.getZymc()))
            && (this.getXnzydm() == null ? other.getXnzydm() == null : this.getXnzydm().equals(other.getXnzydm()))
            && (this.getXnzymc() == null ? other.getXnzymc() == null : this.getXnzymc().equals(other.getXnzymc()))
            && (this.getXydm() == null ? other.getXydm() == null : this.getXydm().equals(other.getXydm()))
            && (this.getXymc() == null ? other.getXymc() == null : this.getXymc().equals(other.getXymc()))
            && (this.getJc() == null ? other.getJc() == null : this.getJc().equals(other.getJc()))
            && (this.getJcgjjgh() == null ? other.getJcgjjgh() == null : this.getJcgjjgh().equals(other.getJcgjjgh()))
            && (this.getJcsbjgh() == null ? other.getJcsbjgh() == null : this.getJcsbjgh().equals(other.getJcsbjgh()))
            && (this.getJcgjjjp() == null ? other.getJcgjjjp() == null : this.getJcgjjjp().equals(other.getJcgjjjp()))
            && (this.getJcsbjjp() == null ? other.getJcsbjjp() == null : this.getJcsbjjp().equals(other.getJcsbjjp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getYear() == null) ? 0 : getYear().hashCode());
        result = prime * result + ((getXxdm() == null) ? 0 : getXxdm().hashCode());
        result = prime * result + ((getXxmc() == null) ? 0 : getXxmc().hashCode());
        result = prime * result + ((getZydm() == null) ? 0 : getZydm().hashCode());
        result = prime * result + ((getZymc() == null) ? 0 : getZymc().hashCode());
        result = prime * result + ((getXnzydm() == null) ? 0 : getXnzydm().hashCode());
        result = prime * result + ((getXnzymc() == null) ? 0 : getXnzymc().hashCode());
        result = prime * result + ((getXydm() == null) ? 0 : getXydm().hashCode());
        result = prime * result + ((getXymc() == null) ? 0 : getXymc().hashCode());
        result = prime * result + ((getJc() == null) ? 0 : getJc().hashCode());
        result = prime * result + ((getJcgjjgh() == null) ? 0 : getJcgjjgh().hashCode());
        result = prime * result + ((getJcsbjgh() == null) ? 0 : getJcsbjgh().hashCode());
        result = prime * result + ((getJcgjjjp() == null) ? 0 : getJcgjjjp().hashCode());
        result = prime * result + ((getJcsbjjp() == null) ? 0 : getJcsbjjp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", year=").append(year);
        sb.append(", xxdm=").append(xxdm);
        sb.append(", xxmc=").append(xxmc);
        sb.append(", zydm=").append(zydm);
        sb.append(", zymc=").append(zymc);
        sb.append(", xnzydm=").append(xnzydm);
        sb.append(", xnzymc=").append(xnzymc);
        sb.append(", xydm=").append(xydm);
        sb.append(", xymc=").append(xymc);
        sb.append(", jc=").append(jc);
        sb.append(", jcgjjgh=").append(jcgjjgh);
        sb.append(", jcsbjgh=").append(jcsbjgh);
        sb.append(", jcgjjjp=").append(jcgjjjp);
        sb.append(", jcsbjjp=").append(jcsbjjp);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}